package com.sword.config;

import org.springframework.context.annotation.Configuration;

/**
 * @description: 配置类，注入bean
 * @author：Lv.RJ
 * @version: 1.0.0
 * @create: 2025/02/17
 **/
@Configuration
public class Config {
    /**
     * 注入阿里驱动bean
     */
//    @Bean
//    @Scope(SCOPE_PROTOTYPE)
////    @Prototype
////    @RequestScope
//    public ISCommonStrategy aliRepository() {
//        return new AliPayDriverStrategyDefaultImpl();
//    }

/*    @Bean
    public ISPayConfig aliPayConfig(){
        return AliPayConfig.builder()
                .setAppId("aliPayBean.getAppId()")
                .setAliPayPublicKey("aliPayBean.getPublicKey()")
                .setAppCertPath("aliPayBean.getAppCertPath()")
                .setAliPayCertPath("aliPayBean.getAliPayCertPath()")
                .setAliPayRootCertPath("aliPayBean.getAliPayRootCertPath()")
                .setCharset("UTF-8")
                .setPrivateKey("aliPayBean.getPrivateKey()")
                .setServiceUrl("aliPayBean.getServerUrl()")
                .setSignType("RSA2");

                // 证书模式
//                .buildByCert();
    }*/
}
